package com.iiapk.gridnew.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import com.iiapk.core.widget.FlingWebView;

public class WebViewFragment extends Fragment {
	
	private String url;
	private WebView webView;
	
	public WebViewFragment(String url) {
		super();
		this.url=url;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
		webView = new FlingWebView(inflater.getContext(),null);
		webView.loadUrl(url);
        return webView;
	}

}